<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Usuario Cadastrados!</h1>
        <fieldset >
            <table border="0" cellpadding="5" cellspacing="5" style="width: 100%" >
                <tr style="color: navy; background-color: silver">
                    <th>Nome</th>
                    <th>Editar</th>
                    <th>Excluir</th>
                </tr>
                <c:forEach items="${lstProfessors}" var="item">
                    <tr>
                        <td>${item.nome}</td>

                        <td><a href="UsuarioSV?action=editar&codigo=${item.id}" title="Editar ${item.nome}" >Editar</a></td>
                        <td><a href="UsuarioSV?action=excluir&codigo=${item.id}" title="Excluir ${item.nome}" >Excluir</a></td>
                    </tr>
                </c:forEach>
                <tbody>
                    <tr>
                        <td colspan="7">
                            Quantidade de Usuarios Cadastradas: ${fn:length(lstProfessors)}.
                        </td>
                    </tr>
                    <tr>
                        <td colspan="7">
                            <input value="Home" name="btn" type="button" onclick="window.location.href='menu.jsp'" />
                            <input value="Nova Usuarios" name="btnNovaUsuarios" type="button" onclick="window.location.href='UsuarioSV?action=novo'" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </fieldset>
    </body>
</html>
